﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace YinLong.ReportEx
{
    public partial class FrmReportDesigner : Form
    {
        private FastReport.Report _report;

        public FastReport.Report Report
        {
            get { return _report; }
            set { _report = value; }
        }
        public FrmReportDesigner()
        {
            InitializeComponent();
        }
        public FrmReportDesigner(FastReport.Report report)
            : this()
        {
            this.Report = report;
        }
        private void rePortDesigner_Load(object sender, EventArgs e)
        {
            this.designerControl.Report = this.Report;
            this.designerControl.RefreshLayout();
            
        }

        private void rePortDesigner_FormClosing(object sender, FormClosingEventArgs e)
        {

        }
    }
}
